<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>订单添加</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="seller/css/font.css">
    <link rel="stylesheet" href="seller/css/index.css">
    <script type="text/javascript" src="seller/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="seller/js/index.js"></script>
    <script src="login/js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="webjars/sweetalert2/10.10.0/dist/sweetalert2.min.css">
    <script src="webjars/sweetalert2/10.10.0/dist/sweetalert2.min.js"></script>
</head>

<body>
<div class="x-body layui-card">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <div class="layui-tab-content">
            <form id="recProductAddForm" method="post" enctype="multipart/form-data"
                  onsubmit="return false">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class='x-red'>*</span>废品图片
                        </label>
                        <div class="layui-input-block">
                            <div class="site-demo-upbar">
                                <input type="file" id="recProductImage" name="recProductImage" required=""
                                       autocomplete="off"
                                       class="layui-btn" class="layui-icon" value="上传文件"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="recProductName" class="layui-form-label">
                            <span class="x-red">*</span>废品名称</label>
                        <div class="layui-input-block">
                            <input type="text" id="recProductName" placeholder="请输入废品名称" name="recProductName"
                                   required=""
                                   lay-verify="recProductName"
                                   autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class='x-red'>*</span>废品类型
                        </label>
                        <div class="layui-input-block">
                            <select id="recStyID" name="recStyID"
                                    class="layui-input">

                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="recProductPrice" class="layui-form-label">
                            <span class="x-red">*</span>废品价格</label>
                        <div class="layui-input-block">
                            <input type="text" id="recProductPrice" placeholder="请输入废品单价" name="recProductName"
                                   required=""
                                   lay-verify="recProductPrice"
                                   autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="recProductUnit" class="layui-form-label">
                            <span class="x-red">*</span>废品单位</label>
                        <div class="layui-input-block">
                            <input type="text" id="recProductUnit" placeholder="请输入废品单位" name="recProductUnit"
                                   required=""
                                   lay-verify="recProductUnit"
                                   autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <input type="hidden" id="id" name="id" required="" lay-verify="id"
                           autocomplete="off"
                           class="layui-input">
                    <input type="hidden" id="selectedID" name="selectedID" required="" lay-verify="selectedID"
                           autocomplete="off"
                           class="layui-input">
                    <div class="layui-form-item layui-form-text">
                        <label for="recProductDetail" class="layui-form-label"><span class="x-red">*</span>废品简介</label>
                        <div class="layui-input-block">
                        <textarea placeholder="请输入简介内容" id="recProductDetail" name="recProductDetail"
                                  class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <button class="layui-btn" lay-filter="add" lay-submit="" id="add_Data">编辑</button>
                    </div>
                </div>
            </form>
            <div style="height:100px;"></div>
        </div>
    </div>
</div>
<script>layui.use(['laydate', 'form', 'layer'],
    function () {
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer;
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });

        //自定义验证规则
        form.verify({});


    });</script>
</body>
<script src="Background/Background-RecProductEdit.js" type="text/javascript"></script>
</html>